SHELL = /bin/sh

DIRS = imlib mesh d_Lib pads_creator pads_loader

install:
	for d in $(DIRS); do \
    	  cd $$d; echo $$d; make; make install; cd ..;\
	done

clean:
	for d in $(DIRS); do \
	  cd $$d; make clean; cd ..;\
	done

realclean: clean
	cd bin; rm -f *; cd ..
	cd lib; rm -f *.a; cd ..


tar:
	for d in $(DIRS); do \
	  echo $$d; \
	  cd $$d; make clean; cd ..;\
	  tar cvf ../tar/$$d.tar ./$$d;\
	  gzip ../tar/$$d.tar; mv ../tar/$$d.tar.gz ../tar/$$d.tgz;\
	done
